pkgname=tabbed-intothegnu-git
pkgver=1.0.r0.gcf0c160
pkgrel=2
license=(MIT)
arch=('i686' 'x86_64')
provides=(tabbed)
conflicts=(tabbed)
groups=('intothegnu-config')
depends=(sh  glibc  coreutils  libx11  libxinerama  libxft  freetype2  fontconfig  libfontconfig.so)
makedepends=(git make)
source=(git+https://notabug.org/BezierQuadratic/Tabbed.git)
sha256sums=('SKIP')

pkgver(){
	cd Tabbed
	git describe --long --tags | sed 's/-/.r/;s/-/./'
}

build(){
	cd $srcdir/Tabbed
	make
}

package(){
	cd $srcdir/Tabbed
	mkdir -p $pkgdir/usr/bin
	mkdir -p $pkgdir/usr/share/man/man1
	install -m 755 tabbed $pkgdir/usr/bin/
	install -m 755 xembed $pkgdir/usr/bin/
	cat tabbed.1 | gzip -c >  $pkgdir/usr/share/man/man1/tabbed.1.gz
	cat xembed.1 | gzip -c >  $pkgdir/usr/share/man/man1/xembed.1.gz
}
